<script setup lang="ts">
import Radar from './Radar.vue';
</script>

<template>
  <div class="box">
    <div class="title">
      <slot name="title">访问数量</slot>
    </div>
    <div class="container">
      <slot name="container">
        <Radar></Radar>
      </slot>
    </div>
  </div>
</template>

<style scoped>
.box {
  background-color: white;
  width: 360px;
  height: 392px;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.container {
  flex: 1; /* 占据剩余空间 */
  min-height: 0; /* 防止内容溢出 */
}

.title {
  font-size: 20px;
  color: #333333;
  margin-bottom: 10px;
  font-weight: bold;
}
</style>
